<?php

/**
 * 导入类
 */
use EasyWeChat\Factory;

/**
 * 微信公众号OAuth2.0授权类
 */
class OfficialBase {

    protected $app = null;
    protected $config = [];

    function __construct() {
        $this->config = [
            "app_id" => WECHAT_H5['appid'],
            "secret" => WECHAT_H5['secret'],
            "token" => '',
            "response_type" => 'array'
        ];

        $this->app = Factory::officialAccount($config);
    }
}
